<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>test</title>
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="this is my page">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <style type="text/css">
       h1 {font-size:16px;}
       p {font-size:14px;text-indent: 20px;}
    </style>
  </head>
  <body>
    <h1>1:接口名称</h1>
    <p>发布宠物领养<br/>
    </p>
    <h1>2:接口说明</h1>
    <p>/square/adoptpublish.do</p>
    <h1>3：接口测试</h1>
    <p>
    <form name="form1" id="form1" enctype="multipart/form-data" method="post" action="../square/adoptpublish.do" >
	    pet_cate:<input type="text" name="pet_cate" value=""/>猫|狗<br/>
	    breed:<input type="text" name="breed" value="0"/> 品种<br/>
	    age:<input type="text" name="age" value="2.5"/> 年龄<br/>
	    sex:<input type="text" name="sex" value="male"/>male|female 雌雄 <br/>
	    city:<input type="text" name="city" value="010"/>城市code 010 <br/>
	    city_name:<input type="text" name="city_name" value="北京"/>城市名称 <br/>
	    area:<input type="text" name="area" value=""/>地区 <br/>
	    is_birth:<input type="text" name="is_birth" value=""/>是否绝育 <br/>
	    is_injection:<input type="text" name="is_injection" value=""/>是否注射<br/>
	    qq:<input type="text" name="qq" value=""/> <br/>
	    phone:<input type="text" name="phone" value=""/> <br/>
	    description:<textarea rows="5" cols="40" name="description"></textarea> <br/>
	    image0:<input type="file" name="image0" value=""/> 图片一<br/>
	    image1:<input type="file" name="image1" value=""/> 图片二<br/>
	    <input type="submit" value="submit" >
	</form>
	<br/>
    </p>
    
    <h1>4：接口返回</h1>
    <p>
    <div id="backJson">
          {code:200}
    </div>
    <br/>
    
    </p>
  </body>
</html>
<script type="text/javascript" src="/js/xhr.js"></script>
<script type="text/javascript" src="/js/cactus.js"></script>
<script>
    function exe(){
           Demo.execute("/square/adoptpublish.do",document.forms["form1"]);
    }
</script>
